home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / webbrwsr / nsICommandHandler.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  6KB  |  188 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsICommandHandler.idl
  3.  */
  4.  
  5. #ifndef __gen_nsICommandHandler_h__
  6. #define __gen_nsICommandHandler_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsIDOMWindow; /* forward declaration */
  18.  
  19.  
  20. /* starting interface:    nsICommandHandlerInit */
  21. #define NS_ICOMMANDHANDLERINIT_IID_STR "731c6c50-67d6-11d4-9529-0020183bf181"
  22.  
  23. #define NS_ICOMMANDHANDLERINIT_IID \
  24.   {0x731c6c50, 0x67d6, 0x11d4, \
  25.     { 0x95, 0x29, 0x00, 0x20, 0x18, 0x3b, 0xf1, 0x81 }}
  26.  
  27. class NS_NO_VTABLE nsICommandHandlerInit : public nsISupports {
  28.  public: 
  29.  
  30.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_ICOMMANDHANDLERINIT_IID)
  31.  
  32.   /* attribute nsIDOMWindow window; */
  33.   NS_IMETHOD GetWindow(nsIDOMWindow * *aWindow) = 0;
  34.   NS_IMETHOD SetWindow(nsIDOMWindow * aWindow) = 0;
  35.  
  36. };
  37.  
  38. /* Use this macro when declaring classes that implement this interface. */
  39. #define NS_DECL_NSICOMMANDHANDLERINIT \
  40.   NS_IMETHOD GetWindow(nsIDOMWindow * *aWindow); \
  41.   NS_IMETHOD SetWindow(nsIDOMWindow * aWindow); 
  42.  
  43. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  44. #define NS_FORWARD_NSICOMMANDHANDLERINIT(_to) \
  45.   NS_IMETHOD GetWindow(nsIDOMWindow * *aWindow) { return _to GetWindow(aWindow); } \
  46.   NS_IMETHOD SetWindow(nsIDOMWindow * aWindow) { return _to SetWindow(aWindow); } 
  47.  
  48. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  49. #define NS_FORWARD_SAFE_NSICOMMANDHANDLERINIT(_to) \
  50.   NS_IMETHOD GetWindow(nsIDOMWindow * *aWindow) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWindow(aWindow); } \
  51.   NS_IMETHOD SetWindow(nsIDOMWindow * aWindow) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetWindow(aWindow); } 
  52.  
  53. #if 0
  54. /* Use the code below as a template for the implementation class for this interface. */
  55.  
  56. /* Header file */
  57. class nsCommandHandlerInit : public nsICommandHandlerInit
  58. {
  59. public:
  60.   NS_DECL_ISUPPORTS
  61.   NS_DECL_NSICOMMANDHANDLERINIT
  62.  
  63.   nsCommandHandlerInit();
  64.  
  65. private:
  66.   ~nsCommandHandlerInit();
  67.  
  68. protected:
  69.   /* additional members */
  70. };
  71.  
  72. /* Implementation file */
  73. NS_IMPL_ISUPPORTS1(nsCommandHandlerInit, nsICommandHandlerInit)
  74.  
  75. nsCommandHandlerInit::nsCommandHandlerInit()
  76. {
  77.   /* member initializers and constructor code */
  78. }
  79.  
  80. nsCommandHandlerInit::~nsCommandHandlerInit()
  81. {
  82.   /* destructor code */
  83. }
  84.  
  85. /* attribute nsIDOMWindow window; */
  86. NS_IMETHODIMP nsCommandHandlerInit::GetWindow(nsIDOMWindow * *aWindow)
  87. {
  88.     return NS_ERROR_NOT_IMPLEMENTED;
  89. }
  90. NS_IMETHODIMP nsCommandHandlerInit::SetWindow(nsIDOMWindow * aWindow)
  91. {
  92.     return NS_ERROR_NOT_IMPLEMENTED;
  93. }
  94.  
  95. /* End of implementation class template. */
  96. #endif
  97.  
  98.  
  99. /* starting interface:    nsICommandHandler */
  100. #define NS_ICOMMANDHANDLER_IID_STR "34a4fcf0-66fc-11d4-9528-0020183bf181"
  101.  
  102. #define NS_ICOMMANDHANDLER_IID \
  103.   {0x34a4fcf0, 0x66fc, 0x11d4, \
  104.     { 0x95, 0x28, 0x00, 0x20, 0x18, 0x3b, 0xf1, 0x81 }}
  105.  
  106. class NS_NO_VTABLE nsICommandHandler : public nsISupports {
  107.  public: 
  108.  
  109.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_ICOMMANDHANDLER_IID)
  110.  
  111.   /* string exec (in string aCommand, in string aParameters); */
  112.   NS_IMETHOD Exec(const char *aCommand, const char *aParameters, char **_retval) = 0;
  113.  
  114.   /* string query (in string aCommand, in string aParameters); */
  115.   NS_IMETHOD Query(const char *aCommand, const char *aParameters, char **_retval) = 0;
  116.  
  117. };
  118.  
  119. /* Use this macro when declaring classes that implement this interface. */
  120. #define NS_DECL_NSICOMMANDHANDLER \
  121.   NS_IMETHOD Exec(const char *aCommand, const char *aParameters, char **_retval); \
  122.   NS_IMETHOD Query(const char *aCommand, const char *aParameters, char **_retval); 
  123.  
  124. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  125. #define NS_FORWARD_NSICOMMANDHANDLER(_to) \
  126.   NS_IMETHOD Exec(const char *aCommand, const char *aParameters, char **_retval) { return _to Exec(aCommand, aParameters, _retval); } \
  127.   NS_IMETHOD Query(const char *aCommand, const char *aParameters, char **_retval) { return _to Query(aCommand, aParameters, _retval); } 
  128.  
  129. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  130. #define NS_FORWARD_SAFE_NSICOMMANDHANDLER(_to) \
  131.   NS_IMETHOD Exec(const char *aCommand, const char *aParameters, char **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->Exec(aCommand, aParameters, _retval); } \
  132.   NS_IMETHOD Query(const char *aCommand, const char *aParameters, char **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->Query(aCommand, aParameters, _retval); } 
  133.  
  134. #if 0
  135. /* Use the code below as a template for the implementation class for this interface. */
  136.  
  137. /* Header file */
  138. class nsCommandHandler : public nsICommandHandler
  139. {
  140. public:
  141.   NS_DECL_ISUPPORTS
  142.   NS_DECL_NSICOMMANDHANDLER
  143.  
  144.   nsCommandHandler();
  145.  
  146. private:
  147.   ~nsCommandHandler();
  148.  
  149. protected:
  150.   /* additional members */
  151. };
  152.  
  153. /* Implementation file */
  154. NS_IMPL_ISUPPORTS1(nsCommandHandler, nsICommandHandler)
  155.  
  156. nsCommandHandler::nsCommandHandler()
  157. {
  158.   /* member initializers and constructor code */
  159. }
  160.  
  161. nsCommandHandler::~nsCommandHandler()
  162. {
  163.   /* destructor code */
  164. }
  165.  
  166. /* string exec (in string aCommand, in string aParameters); */
  167. NS_IMETHODIMP nsCommandHandler::Exec(const char *aCommand, const char *aParameters, char **_retval)
  168. {
  169.     return NS_ERROR_NOT_IMPLEMENTED;
  170. }
  171.  
  172. /* string query (in string aCommand, in string aParameters); */
  173. NS_IMETHODIMP nsCommandHandler::Query(const char *aCommand, const char *aParameters, char **_retval)
  174. {
  175.     return NS_ERROR_NOT_IMPLEMENTED;
  176. }
  177.  
  178. /* End of implementation class template. */
  179. #endif
  180.  
  181. //    {3A449110-66FD-11d4-9528-0020183BF181} - 
  182. #define NS_COMMANDHANDLER_CID \
  183. { 0x3a449110, 0x66fd, 0x11d4, { 0x95, 0x28, 0x0, 0x20, 0x18, 0x3b, 0xf1, 0x81 } }
  184. #define NS_COMMANDHANDLER_CONTRACTID \
  185. "@mozilla.org/embedding/browser/nsCommandHandler;1"
  186.  
  187. #endif /* __gen_nsICommandHandler_h__ */
  188.